// 使用express框架 创建一个json文件
let express = require("express")
let app = express()
app.listen(8080,(req,res)=>{
    console.log("服务器已启动，端口号是8080");
})
app.get("/user",(req,res)=>{
    // 我们创建的数据
    res.send(arr_user)
})
let arr_user = [
    {
        name:"yy",
        age:23,
        sex:"f"
    },
    {
        name:"ee",
        age:23,
        sex:"m"
    },
    {
        name:"ss",
        age:23,
        sex:"f"
    },
    {
        name:"ss",
        age:23,
        sex:"m"
    },
    {
        name:"ww",
        age:23,
        sex:"m"
    },
]